package org.totoro.concurrent.sync.mark_word;

import org.totoro.concurrent.sync.mark_word.state.BiasedStrategy;
import org.totoro.concurrent.sync.mark_word.state.NormalStrategy;

/**
 * @author daocr
 * @date 2020/3/15
 */
public class Context {

    public static void main(String[] args) {
        Object o = new Object();
        MarkWordStrategy markWordStrategy = null;
//     markWordStrategy =   new NormalStrategy(o);
        markWordStrategy = new BiasedStrategy(o);

        markWordStrategy.print();
    }
}
